import 'normalize.css';
import '@/styles/globals.scss';
import 'antd/dist/reset.css';

import Head from 'next/head';
import type { AppProps } from 'next/app';
import { Provider } from 'react-redux';

import wrapper from '@/store/store';

export default function App({ Component, ...rest }: AppProps) {
	const { store, props } = wrapper.useWrappedStore(rest);

	return (
		<Provider store={store}>
			<Head>
				{/* 这里可以设置全局 meta 信息 */}
				<title>虚贝租号</title>
				<link rel="icon" href="/static/favicon.ico" />
			</Head>
			<Component {...props.pageProps} />
		</Provider>
	);
}
